package com.vitabuybuy.tv.dto;

import com.vitabuybuy.tv.utils.LanaugeUtils;

/**
 * 作者：SimGa
 * 日期：2021/1/6
 * 时间：16:28
 * 包名：com.vitabuybuy.tv.dto
 */
public class BiddingListDto {

    /**
     * id :
     * buysQuantity :
     * remainingTime :
     * product : {"id":"","name":"","thumbnail":""}
     * currentPrice :
     */

    private int id;
    private int buysQuantity;
    private long remainingTime;
    /**
     * id :
     * name :
     * thumbnail :
     */

    private ProductBean product;
    private double currentPrice;
    private String startTime;


    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getBuysQuantity() {
        return buysQuantity;
    }

    public void setBuysQuantity(int buysQuantity) {
        this.buysQuantity = buysQuantity;
    }

    public long getRemainingTime() {
        return remainingTime;
    }

    public void setRemainingTime(long remainingTime) {
        this.remainingTime = remainingTime;
    }

    public ProductBean getProduct() {
        return product;
    }

    public void setProduct(ProductBean product) {
        this.product = product;
    }

    public double getCurrentPrice() {
        return currentPrice;
    }

    public void setCurrentPrice(double currentPrice) {
        this.currentPrice = currentPrice;
    }

    public static class ProductBean {
        private int id;
        private String name;
        private String thumbnail;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return LanaugeUtils.returnStrByLocation(name);
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getThumbnail() {
            return thumbnail;
        }

        public void setThumbnail(String thumbnail) {
            this.thumbnail = thumbnail;
        }
    }
}
